Constant Time Generation of Set Partitions

نویسندگان

  • Shin-ichiro Kawano
  • Shin-Ichi Nakano
چکیده

In this paper we give a simple algorithm to generate all partitions of {1, 2, · · · , n} into k non-empty subsets. The number of such partitions is known as the Stirling number of the second kind. The algorithm generates each partition in constant time without repetition. By choosing k = 1, 2, · · · , n we can also generate all partitions of {1, 2, · · · , n} into subsets. The number of such partitions is known as the Bell number. key words: algorithm, enumeration, the Stirling number of the second kind, the Bell number, Gray code

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Stirling number of the fourth kind and lucky partitions of a finite set

The concept of Lucky k-polynomials and in particular Lucky χ-polynomials was recently introduced. This paper introduces Stirling number of the fourth kind and Lucky partitions of a finite set in order to determine either the Lucky k- or Lucky χ-polynomial of a graph. The integer partitions influence Stirling partitions of the second kind.

متن کامل

Gray Codes, Loopless Algorithm and Partitions

The generation of efficient Gray codes and combinatorial algorithms that list all the members of a combinatorial object has received a lot of attention in the last few years. Knuth gave a code for the set of all partitions of [n] = {1, 2, . . . , n}. Ruskey presented a modified version of Knuth’s algorithm with distance 2. Ehrlich introduced a looplees algorithm for the set of the partitions of...

متن کامل

k-Efficient partitions of graphs

A set $S = {u_1,u_2, ldots, u_t}$ of vertices of $G$ is an efficientdominating set if every vertex of $G$ is dominated exactly once by thevertices of $S$. Letting $U_i$ denote the set of vertices dominated by $u_i$%, we note that ${U_1, U_2, ldots U_t}$ is a partition of the vertex setof $G$ and that each $U_i$ contains the vertex $u_i$ and all the vertices atdistance~1 from it in $G$. In this ...

متن کامل

Eecient Generation of Graphical Partitions

Given a positive even integer n we show how to generate the set G n of graphical partitions of n that is those partitions of n which correspond to the degree sequences of simple undirected graphs The algorithm is based on a recurrence for G n and the total time used by the algorithm independent of output is O jG n j which is constant average time per graphical partition This is the rst algorith...

متن کامل

A New Algorithm for Generation of Exactly M-Block Set Partitions in Associative Model

In this paper a new parallel algorithm is presented for generation of all exactly m{block partitions of n{element set. The basic building blocks of the algorithm are an associative generator of combinations and a complex parallel counter. Consecutive objects are generated in lexicographic order, with O(1) time per object. The algorithm can be used for generation of all partitions within the giv...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:
  • IEICE Transactions

دوره 88-A  شماره 

صفحات  -

تاریخ انتشار 2005